#include "helpdisplay.h"

HelpDisplay::HelpDisplay(QGraphicsView *view, QGraphicsScene *scene)
    : QGraphicsRectItem(0,scene)
{
    setPos(view->mapToScene(0,0));
    setRect(0,0,view->mapToScene(view->width(),9).x()-120-pos().x(),620);

    textDisplay = new QGraphicsTextItem(this,scene);
    textDisplay->setTextWidth(rect().width()-20);
    textDisplay->setPos(10,10);
}

void HelpDisplay::setText(QString text)
{
    textDisplay->setHtml(text);
}
